package com.xiaozhen.alarm.handler;

import com.alibaba.fastjson.JSONObject;
import com.xiaozhen.alarm.domain.AlarmStrategy;

import java.util.List;
import java.util.Map;

/**
 * HISTORY
 *
 * @author zhenweisheng
 * @date 2021/10/28 10:14
 * @description:
 */
public interface AlarmHandler {

    /**
     * 处理json数据
     * @param tableName
     * @param jsonData
     */
    void handleJsonData(String tableName, Map<String,Object> jsonData);

    /**
     * 处理对应告警策略的消息
     *
     * @param jsonData
     * @param alarmStrategyList
     */
    void handleAlarmStrategy(Map<String,Object> jsonData, List<AlarmStrategy> alarmStrategyList);
}
